/**
 * Copyright (c) Enalean, 2016. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.siteadmin-statistics-project-quota,
#siteadmin-statistics-frequencies,
#siteadmin-statistics-disk-usage,
#siteadmin-statistics-disk-usage-top-users,
#siteadmin-statistics-disk-usage-user-details {
    display: flex;
    align-items: flex-start;
}

.siteadmin-statistics-project-quota-filter,
#siteadmin-statistics-disk-usage-search,
#siteadmin-statistics-frequencies-search,
#siteadmin-statistics-disk-usage-top-users-search,
#siteadmin-statistics-disk-usage-user-details-search {
    width: 300px;
    margin: 0 $tlp-spacing 0 0;
}

.siteadmin-statistics-project-quota-results,
#siteadmin-statistics-disk-usage-data,
#siteadmin-statistics-frequencies-graph,
#siteadmin-statistics-disk-usage-top-users-data,
#siteadmin-statistics-disk-usage-user-details-data {
    width: 100%;
}

.siteadmin-statistics-project-quota-add-project,
.siteadmin-statistics-project-quota-add-requester {
    width: 50%;
}

.siteadmin-statistics-project-quota-results-date,
.siteadmin-statistics-project-quota-results-requester {
    white-space: nowrap;
}

.siteadmin-statistics-project-quota-results-project {
    width: 30%;
}

.siteadmin-statistics-project-quota-results-motivation {
    width: 50%;
    max-width: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.siteadmin-statistics-project-quota-results-actions {
    width: 1px;
    text-align: left;
    white-space: nowrap;
}

.siteadmin-statistics-disk-usage-data-service {
    display: flex;
    align-items: center;
}

.siteadmin-statistics-disk-usage-data-service-color {
    width: 25px;
    height: 25px;
    margin: 0 $tlp-half-spacing 0 0;
    border-radius: 50%;
}

.siteadmin-statistics-disk-usage-data-global {
    display: flex;
    flex-wrap: wrap;
}

.siteadmin-statistics-disk-usage-data-global-property {
    margin: 0 $tlp-double-spacing $tlp-spacing 0;
}

@media screen and (max-width: 1400px) {
    #siteadmin-statistics-frequencies,
    #siteadmin-statistics-disk-usage {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #siteadmin-statistics-frequencies-search,
    #siteadmin-statistics-disk-usage-search {
        width: 100%;
        margin: 0 0 $tlp-spacing;
    }
}

@media screen and (max-width: 1200px) {
    .siteadmin-statistics-project-quota,
    #siteadmin-statistics-disk-usage-top-users,
    #siteadmin-statistics-disk-usage-user-details {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .siteadmin-statistics-project-quota-filter,
    #siteadmin-statistics-disk-usage-top-users-search,
    #siteadmin-statistics-disk-usage-user-details-search {
        width: 100%;
        margin: 0 0 $tlp-spacing;
    }

    .siteadmin-statistics-project-quota-results-actions {
        white-space: normal;

        > .tlp-table-cell-actions-button {
            width: 100%;
            margin: 0 0 5px;
        }
    }
}

.siteadmin-statistics-disk-usage-top-users-username-cell {
    width: 100%;
}

.siteadmin-statistics-disk-usage-top-users-end-size-cell {
    white-space: nowrap;
}

#siteadmin-statistics-disk-usage-user-details-data-row {
    display: flex;
}

.siteadmin-statistics-disk-usage-user-details-data-property {
    margin: 0 $tlp-double-spacing 0 0;
}

#siteadmin-export-data {
    width: 100%;
}

.siteadmin-export-data-disappear {
    display: none;
}

.siteadmin-export-data-content-border {
    margin: $tlp-spacing;
    border-left: 5px solid #cccccc;
}

.siteadmin-export-data-content {
    margin-left: $tlp-half-spacing;
}

.scm-statistics-project-form {
    max-width: 300px;
}

.disk-quota-message-label {
    width: 100%;
}
